import { createRouter, createWebHistory } from 'vue-router'
import Login from '@/views/Login.vue'
import Start from '@/views/Start.vue'
import Carousel from '../views/Carousel.vue'
import Reset from '@/views/Reset.vue'
import Gesture from '@/views/Gesture.vue'
import ToLogin from '@/views/ToLogin.vue'
import Home from '@/views/Home.vue'
import Map from '@/views/Map.vue'
import ApiMap from '@/views/ApiMap.vue'
import GetPath from '@/views/GetPath.vue'
import Path from '@/views/Path.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'start',
      component: Start
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/carousel',
      name: 'carousel',
      component: Carousel
    },
    {
      path: '/reset',
      name: 'reset',
      component: Reset
    },
    {
      path: '/gesture',
      name: 'gesture',
      component: Gesture
    },
    {
      path: '/toLogin',
      name: 'toLogin',
      component: ToLogin
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/map',
      name: 'map',
      component: Map
    },
    {
      path: '/ApiMap',
      name: 'ApiMap',
      component: ApiMap
    },
    {
      path: '/GetPath',
      name: 'GetPath',
      component: GetPath
    },
    {
      path: '/Path',
      name: 'Path',
      component: Path
    },
    
  ],
})

export default router
